﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once
#include "GnufBase.h"
#include "GnufComponent.h"
#include "GnufItemEvents.h"
#include <GnufWelcomePanel.h>

namespace gnuf {
    class DeveloperToolbar final
        : public Component
        , public IItemEventHandler
    {
    public:
        explicit DeveloperToolbar(const std::wstring & key, const std::wstring & config);
        ~DeveloperToolbar();
    protected:
        // Inherits from gnuf::Component...
        virtual void initialize(gnuf::Toolbar *) override;
        virtual gcmp::OwnerPtr<QtToolbar> createQtToolBar(Toolbar*) override;
        virtual void onPostVisibilityChanged() override;

        // Inherits from gnuf::IItemEventHandler...
        virtual void onHeightChanged(gnuf::Toolbar *, int) override;
    };
}
